package com.ruoyi.media.channelsMail.domain.bo;

import cn.hutool.core.date.DateTime;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频号小店开通业务对象 media_channels_mail
 *
 * @author dqw
 * @date 2023-04-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MediaChannelsMailBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 视频号账号id
     */
    @NotNull(message = "视频账号不能为空", groups = { AddGroup.class })
    private Long accountId;

    /**
     * 部门id
     */
    //@NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户id
     */
    //@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * cookies
     */
   // @NotBlank(message = "cookies不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cookies;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品id
     */
    @NotBlank(message = "商品id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spuId;

    /**
     * 商品token
     */
    //@NotBlank(message = "账号token", groups = { AddGroup.class, EditGroup.class })
    private String token;

    /**
     * 佣金率
     */
    @NotBlank(message = "佣金率", groups = { AddGroup.class, EditGroup.class })
    private String ratio;


    private DateTime startTime;
    private DateTime endTime;
    private Integer promotionType;
    private String infoList;

}
